﻿using UnityEngine;


namespace Nekonya.Example
{
    public class AppStartup : MonoBehaviour
    {
        private void Start()
        {
            Debug.Log("<color=green>Application.persistentDataPath:</color> " + Application.persistentDataPath);
            Debug.Log("<color=green>Application.temporaryCachePath:</color> " + Application.temporaryCachePath);
            Debug.Log("<color=green>Addressables.RuntimePath:</color> " + UnityEngine.AddressableAssets.Addressables.RuntimePath);


            GameObject.DontDestroyOnLoad(this.gameObject);

            XRes.Initialize(() =>
            {
                //初始化Lua（因为我们所有逻辑，都基于Lua）
                this.gameObject.AddComponent<AppStartupLua>();
            });
        }


    }
}
